import request from '@/utils/request'

// 获取申请列表
export function getApplicationList(data) {
  return request({
    url: '/ord/order/product/comparison/list',
    method: 'post',
    data
  })
}

// 新增申请表
export function addApplication(data) {
  return request({
    url: '/ord/order/product/comparison/edit',
    method: 'post',
    data
  })
}

// 删除申请表
export function deleteApplication(params) {
  return request({
    url: '/ord/order/product/comparison/delete',
    method: 'post',
    params
  })
}

// 获取申请表详情
export function getApplicationDetail(params) {
  return request({
    url: '/ord/order/product/comparison/detail',
    method: 'post',
    params
  })
}

// 获取产品信息详情
export function getApplicationDetailExt(params) {
  return request({
    url: '/ord/order/product/comparison/detailext',
    method: 'post',
    params
  })
}

// 查询建议列表
export function getSuggestionList(params) {
  return request({
    url: '/ord/order/product/comparison/sugg/list',
    method: 'post',
    params
  })
}

// 编辑建议
export function editSuggestion(data, params) {
  return request({
    url: '/ord/order/product/comparison/sugg/edit',
    method: 'post',
    data,
    params
  })
}
